package com.suma.platform.core.util;

/**
 * @author suma
 * @date 2018/3/9 上午9:53
 */
public class EmpTest {

	private String anyString;

	public EmpTest(String anyString) {
		this.anyString = anyString;
	}

	void getName() {
		synchronized (anyString) {
			System.out.println(Thread.currentThread().getName());
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println(System.currentTimeMillis());
		}
	}

	void getSex() {
		System.out.println(Thread.currentThread().getName());
		System.out.println("getSex");
	}
}
